package com.kk.dp.danli;

/**
 * @Description:
 * @Author: kangkai
 * @Date: 2025/3/13 20:24
 */
public class Mgr02 {

    private static Mgr02 INSTANCE;

    static {
        INSTANCE = new Mgr02();
    }
    public static Mgr02 getInstance(){
        return INSTANCE;
    }

    public void m(){
        System.out.println("m");
    }

    public static void main(String[] args) {
        Mgr01 m1=Mgr01.getInstance();
        Mgr01 m2=Mgr01.getInstance();
        System.out.println(m1==m2);
    }
}
